package stone.ast;

import org.jetbrains.annotations.NotNull;
import runner.Environment;
import stone.Token;

public class NumberLiteral extends ASTLeaf {
  public NumberLiteral(Token t) {
    super(t);
  }

  public int value() {
    return getToken().getNumber();
  }

  @NotNull
  public Object eval(Environment e) {
    return value();
  }

}
